package com.nofx.mydemo.event;

import org.springframework.context.ApplicationEvent;

/**
 * 自定义SpringEvent
 * @author yyc-01407250
 * @date 2021年05月11日 13:53
 */
public class CustomSpringEvent extends ApplicationEvent {

    private String message;

    public CustomSpringEvent(Object source,String message){
        super(source);
        this.message = message;
    }

    public String getMessage(){
        return message;
    }
}
